<template>
  <div id="box">
      <MyMtHeader titleText="分类详情"/>
      <HeaderTop/>
      <CartCard @click.native="$router.push(`/productdetail/${index}`)" v-for="(item,index) in classList" :key="index" :item="item"/>
  </div>
</template>

<script>
import CartCard from '../CartCard/CartCard.vue'
import HeaderTop from '../Header/HeaderTop.vue'
import MyMtHeader from '../MyMtHeader/MyMtHeader.vue'
export default {
    components: { MyMtHeader,HeaderTop, CartCard },
    data(){
        return {
            classList:[
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/2ad834a8448d4d839d9f1f64b6ee8fea.jpg',
                    text:'【海尔】寻真水果 山东烟台栖霞红富士苹果16-24个 5kg 新鲜水果',
                    newPrice:73.5,
                    oldPrice:98
                },
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/f893f1fdc07a48de9db4fa882422c236.jpg',
                    text:'【海尔】缤咕果园 海南红心火龙果6斤装约7个大果 红肉吉祥果新鲜水果',
                    newPrice:97.5,
                    oldPrice:130
                },
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/64ccd6b3061c4025bc26860171614e78.jpg',
                    text:'【海尔】鲜游记 琯溪蜜白肉蜜柚 2个装 约2.5kg 福建平和新鲜柚子',
                    newPrice:73.5,
                    oldPrice:98
                },
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/97812ce7d175451484ce43705ad6d5c3.jpg',
                    text:'【海尔】密园小农  密云当地新鲜西红柿 约2kg 自然熟 沙瓤 新鲜蔬菜',
                    newPrice:27,
                    oldPrice:36
                },
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/f55b147033d84497a54fd5c34c75e153.jpg',
                    text:'【海尔】密园小农 新鲜西兰花 500g  当天采摘蔬菜',
                    newPrice:97.5,
                    oldPrice:130
                },
                {
                    img:'http://10.203.0.101:8081/shopping/resources/upload/64ccd6b3061c4025bc26860171614e78.jpg',
                    text:'【海尔】鲜游记 琯溪蜜白肉蜜柚 2个装 约2.5kg 福建平和新鲜柚子',
                    newPrice:73.5,
                    oldPrice:98
                },
            ]
        }
    }
}
</script>

<style scoped>

</style>